<template>
  <table>
    <tr>
      <td>id</td>
      <td>user</td>
      <td>avat</td>
      <td>email</td>
    </tr>
    <tr v-for="item in muser">
      <td>{{item.id}}</td>
      <td>{{item.username}}</td>
      <td>{{item.avatar}}</td>
      <td>{{item.email}}</td>
    </tr>
  </table>
</template>

<script>
export default
{
  name: "muser",
    data() {
      return {
        muser: [{
            id: 1,
            username: 'xiaoming',
            avatar: 1,
            email:'eee@c.com'
          },{
          id: 2,
          username: 'xiaogou',
          avatar: 2,
          email:'www@c.com'
        }]
      }
    },
  created() {
    const _this = this
    axios.get('http://localhost:8880/index').then(function(resp) {
      _this.muser=resp.data})
}
}
</script>

<style scoped>

</style>
